<template>
  <div class="common-layout">
    <el-container>
      <el-header style="background-color: gray; font-size: 22px; height: 60px;">


        <div style="float: left;align-items: center; display: flex; margin-top: 10px;cursor: pointer;" @click="navTo">
          <el-icon style="margin-right: 10px;">
            <Grid />
          </el-icon>
          网格化治理平台
        </div>
        <div style="float: right;align-items: center; display: flex;margin-top: 10px;">
          <el-icon style="margin-right: 10px;">
            <UserFilled />
          </el-icon>
          <span>{{ store }}</span>
          <el-icon style="cursor: pointer;margin-left: 50px;" @click="exit">
            <SwitchButton />
          </el-icon>
        </div>

      </el-header>
      <el-container>
        <el-aside width="200px" style="background-color: #ccc;">


          
        </el-aside>
        <el-main style="background-color:#eee; height: 800px;">Main


        </el-main>
      </el-container>
    </el-container>
  </div>
</template>
<script lang="ts">

import { useRouter } from 'vue-router'
import { ElMessage, ElMessageBox } from 'element-plus'
import { SwitchButton, UserFilled, Grid } from '@element-plus/icons-vue'


const router = useRouter()

const navTo = () => {
  router.push({ name: "main" })
}

</script>